package club.looli.haoke.ad.entity;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 广告表
 * </p>
 *
 * @author looli
 * @since 2020-07-12
 */
@Data
@Accessors(chain = true)
@TableName("tb_ad")
public class Ad implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 广告类型
     */
    private Integer type;

    /**
     * 描述
     */
    private String title;

    /**
     * 图片URL地址
     */
    private String url;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime created;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updated;


}
